package com.pansoft.kline.model;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.pansoft.kline.adapter.KLineRiseFallAdapter;

/**
 * @author : zzj
 * @e-mail : zhangzhijun@pansoft.com
 * @date : 2018/11/19 15:36
 * @desc : 涨跌幅 展开式列表的子item
 * @version: 1.0
 */
public class KLineRiseFallItemModel implements MultiItemEntity {

    private String marketId;
    /**
     * coinName
     */
    private String name;
    /**
     * coinTitle
     */
    private String fullName;
    /**
     * last*rate（6.9）
     */
    private String price;
    /**
     * last字段
     */
    private String subPrice;
    /**
     * 计算
     * （last-open）/open
     */
    private String changeNum;
    /**
     * 是否涨幅
     */
    private boolean isIncrease;

    public String getMarketId() {
        return marketId;
    }

    public void setMarketId(String marketId) {
        this.marketId = marketId;
    }

    public boolean isIncrease() {
        return isIncrease;
    }

    public void setIncrease(boolean increase) {
        isIncrease = increase;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getSubPrice() {
        return subPrice;
    }

    public void setSubPrice(String subPrice) {
        this.subPrice = subPrice;
    }

    public String getChangeNum() {
        return changeNum;
    }

    public void setChangeNum(String changeNum) {
        this.changeNum = changeNum;
    }

    @Override
    public int getItemType() {
        return KLineRiseFallAdapter.TYPE_RISE_FALL_LEVEL_TWO;
    }
}
